const fs = require("fs")
const path = require("path")

// 根据实际目标目录配置路径
const distDir = path.join(__dirname, "dist")

if (fs.existsSync(distDir)) {
  fs.rmSync(distDir, { recursive: true, force: true })
  console.log("Dist directory has been cleaned.")
} else {
  console.log("Dist directory does not exist.")
}
